package com.mrx.pvzcommunity.dao;

import com.mrx.pvzcommunity.model.pvz.Zombie;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 僵尸 相关操作
 */
@Repository
public interface ZombieDao {

    @Select("SELECT * FROM zombies")
    List<Zombie> getAllZombies();

    @Select("SELECT img FROM zombies WHERE zid = #{zid}")
    String getImgByZombieId(@Param("zid") String zid);
}
